package cn.dlc.com.product.controller;

import cn.dlc.com.nacos.domain.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

/**
 * @author 邓立川
 * @date 2020/12/30 13:58
 * @desc 添加当前类的描述信息
 */
@RestController
@RequestMapping("product")
public class ProductController {

    @GetMapping("{id}")
    public User getUser(@PathVariable("id") String id) {

        User user = new User();
        user.setId(UUID.randomUUID().toString());
        user.setName(" from product-user-server");
        return user;
    }
}
